package com.fhz.kotlinmvvm.api

import com.fhz.kotlinmvvm.entity.Banner
import com.fhz.kotlinmvvm.entity.Goods
import com.fhz.kotlinmvvm.entity.ResponseApi
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

/**
 * 时间:2023/9/14
 * @author Mr.Feng
 * 简述:
 */
interface FengServiceApi {
    @GET("banner/select")
    suspend fun getBanners(@Query("type") type:Int,@Query("page") page:Int,@Query("pageSize") pageSize:Int) : ResponseApi<Banner>

    @GET("goods/select/{page}/{size}")
    suspend fun getGoodsList(@Path("page") page:Int, @Path("size") size:Int) : ResponseApi<Goods>
}